package com.kingyun.gpsinspection.purificationservice.dao.mapper.jsm;


import com.kingyun.gpsinspection.purificationservice.facade.model.jsm.RelatedDoc;

import java.util.List;
import java.util.Map;

/**
 * 相关文档上传-映射
 */
public interface RelatedDocMapper {
    /**
     * 文档关系映射-删除
     *
     * @param cellRelatedDocId
     * @return
     */
    int deleteByPrimaryKey(String cellRelatedDocId);

    /**
     * 文档关系映射-插入
     *
     * @param record
     * @return
     */
    int insert(RelatedDoc record);

    /**
     * 文档关系映射-插入
     *
     * @param record
     * @return
     */
    int insertSelective(RelatedDoc record);

    /**
     * 文档关系映射-查询
     *
     * @param cellRelatedDocId
     * @return
     */
    RelatedDoc selectByPrimaryKey(String cellRelatedDocId);

    /**
     * 文档关系映射-修改
     *
     * @param record
     * @return
     */
    int updateByPrimaryKeySelective(RelatedDoc record);

    /**
     * 文档关系映射-修改
     *
     * @param record
     * @return
     */
    int updateByPrimaryKey(RelatedDoc record);

    /**
     * 查询分页数据
     */
    List<RelatedDoc> queryTableList(RelatedDoc relatedDoc);

    /**
     * 逻辑删除文档配置信息
     */
    int updateDocByIds(Map<String, Object> map);
}